package com.bigwork.dto.user;

import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UserUpdateRequest {
    // Only password can be updated in this simple example
    @Size(min = 8, message = "新密码长度至少为8位")
    @Pattern(regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).*$", message = "新密码必须包含大小写字母和数字")
    private String password;
}